package controllers

import "api01/util"

type ErrorController struct {
	BaseController
}

func (this *ErrorController) Error404() {
	util.OutPutError(404,"not found")
}

func (this *ErrorController) Error501() {
	util.OutPutError(501,"server error")
}

func (this *ErrorController) ErrorDb() {
	util.OutPutError(502,"database is now down")
}